package com.bdqn.membersystem.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.bdqn.membersystem.pojo.LeaveMessage;
import com.bdqn.membersystem.mapper.LeaveMessageMapper;
import com.bdqn.membersystem.service.LeaveMessageService;
/**
* 作者：姚岳城
* 日期：2020/4/3 16:53
*/

@Service
public class LeaveMessageServiceImpl implements LeaveMessageService{

    @Resource
    private LeaveMessageMapper leaveMessageMapper;


    @Override
    public List<LeaveMessage> getLeaveMessageList(LeaveMessage leaveMessage) throws Exception {
        return leaveMessageMapper.getLeaveMessageList(leaveMessage);
    }

    @Override
    public LeaveMessage getLeaveMessage(LeaveMessage leaveMessage) throws Exception {
        return leaveMessageMapper.getLeaveMessage(leaveMessage);
    }

    @Override
    public int addLeaveMessage(LeaveMessage leaveMessage) throws Exception {
        return leaveMessageMapper.addLeaveMessage(leaveMessage);
    }

    @Override
    public int modifyLeaveMessage(LeaveMessage leaveMessage) throws Exception {
        return leaveMessageMapper.modifyLeaveMessage(leaveMessage);
    }

    @Override
    public int count(LeaveMessage leaveMessage) throws Exception {
        return leaveMessageMapper.count(leaveMessage);
    }
}
